package com.ai.aichat.controller;

import com.ai.aichat.entity.Users;
import com.ai.aichat.service.IUsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 用户基本信息表 前端控制器
 * </p>
 *
 * @author baomidou
 * @since 2025-09-16
 */
@RestController
@RequestMapping("/api/aichat/users")
public class UsersController {
    @Autowired
    private IUsersService usersService;


    @PostMapping("register")
    public Object register(@RequestBody Users user){
        return usersService.register(user);
    }
}
